package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.PointRelationshipDictMapper;
import com.ruoyi.safety.domain.PointRelationshipDict;
import com.ruoyi.safety.service.IPointRelationshipDictService;

/**
 * 测点关联关系字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class PointRelationshipDictServiceImpl extends ServiceImpl<PointRelationshipDictMapper, PointRelationshipDict> implements IPointRelationshipDictService //修改
{
    @Autowired
    private PointRelationshipDictMapper pointRelationshipDictMapper;

    /**
     * 查询测点关联关系字典
     * 
     * @param pointRelationshipId 测点关联关系字典主键
     * @return 测点关联关系字典
     */
    @Override
    public PointRelationshipDict selectPointRelationshipDictByPointRelationshipId(String pointRelationshipId)
    {
        return pointRelationshipDictMapper.selectPointRelationshipDictByPointRelationshipId(pointRelationshipId);
    }

    /**
     * 查询测点关联关系字典列表
     * 
     * @param pointRelationshipDict 测点关联关系字典
     * @return 测点关联关系字典
     */
    @Override
    public List<PointRelationshipDict> selectPointRelationshipDictList(PointRelationshipDict pointRelationshipDict)
    {
        return pointRelationshipDictMapper.selectPointRelationshipDictList(pointRelationshipDict);
    }

    /**
     * 新增测点关联关系字典
     * 
     * @param pointRelationshipDict 测点关联关系字典
     * @return 结果
     */
    @Override
    public int insertPointRelationshipDict(PointRelationshipDict pointRelationshipDict)
    {
        return pointRelationshipDictMapper.insertPointRelationshipDict(pointRelationshipDict);
    }

    /**
     * 修改测点关联关系字典
     * 
     * @param pointRelationshipDict 测点关联关系字典
     * @return 结果
     */
    @Override
    public int updatePointRelationshipDict(PointRelationshipDict pointRelationshipDict)
    {
        return pointRelationshipDictMapper.updatePointRelationshipDict(pointRelationshipDict);
    }

    /**
     * 批量删除测点关联关系字典
     * 
     * @param pointRelationshipIds 需要删除的测点关联关系字典主键
     * @return 结果
     */
    @Override
    public int deletePointRelationshipDictByPointRelationshipIds(String[] pointRelationshipIds)
    {
        return pointRelationshipDictMapper.deletePointRelationshipDictByPointRelationshipIds(pointRelationshipIds);
    }

    /**
     * 删除测点关联关系字典信息
     * 
     * @param pointRelationshipId 测点关联关系字典主键
     * @return 结果
     */
    @Override
    public int deletePointRelationshipDictByPointRelationshipId(String pointRelationshipId)
    {
        return pointRelationshipDictMapper.deletePointRelationshipDictByPointRelationshipId(pointRelationshipId);
    }

    @Override
    public PointRelationshipDict selectPointRelationshipDictByCode(String datum) {
        return pointRelationshipDictMapper.selectPointRelationshipDictByCode(datum);
    }
}
